<?php
$backurl = isset($_POST['backurl']) ? $_POST['backurl'] : $this->referer();

$pn = explode('/', $this->get('pagename'));

if(!isset($pn[1])){
	$this->template = '404';
} else {
	$this->template = $pn[0].'/'.$pn[1];
	if(file_exists("./modules/boot/".$pn[1].".php")){
		include("./modules/boot/".$pn[1].".php");
	} else {
		$this->template = '404';
	}
}
